import {
	Tools
} from 'weaver-mobile';

export const isSettedSecondaryPwd = (params) => {
	return Tools.callApi({
		url: '/api/hrm/secondarypwd/isSettedSecondaryPwd',
		method: 'GET',
		params
	});
}

export const getPasswordForm = (params) => {
	return Tools.callApi({
		url: '/api/hrm/secondarypwd/getPasswordForm',
		method: 'GET',
		params
	});
}

export const getSecondaryPwdForm = (params) => {
	return Tools.callApi({
		url: '/api/hrm/secondarypwd/getSecondaryPwdForm',
		method: 'GET',
		params
	});
}

export const checkPassword = (params) => {
	return Tools.callApi({
		url: '/api/hrm/secondarypwd/checkPassword',
		method: 'POST',
		params
	});
}

export const saveSecondaryPwd = (params) => {
	return Tools.callApi({
		url: '/api/hrm/secondarypwd/saveSecondaryPwd',
		method: 'POST',
		params
	});
}

export const checkOldSecondaryPwd = (params) => {
	return Tools.callApi({
		url: '/api/hrm/secondarypwd/checkOldSecondaryPwd',
		method: 'POST',
		params
	});
}

export const checkNewSecondaryPwd = (params) => {
	return Tools.callApi({
		url: '/api/hrm/secondarypwd/checkNewSecondaryPwd',
		method: 'POST',
		params
	});
}